package com.weihua.conver;

import com.weihua.bo.PlcBo;
import com.weihua.bo.PlcDataBo;
import com.weihua.po.PlcDataPo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface PlcDataConvert {
    PlcDataConvert T = Mappers.getMapper(PlcDataConvert.class);


    /**
     * 转换业务实体到持久化实体
     *
     * @param bo 业务实体
     * @return 持久化实体
     */
    PlcDataPo transBo2Po(PlcDataBo bo);

    /**
     * 转换持久化实体到业务实体
     *
     * @param po 持久化实体
     * @return 业务实体
     */
    PlcDataBo transPo2Bo(PlcDataPo po);

    PlcDataBo transPBO2Bo(PlcBo bo);
}
